#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_pushButton_clicked()
{
    QString lable("今天的安排是：");
    if(ui->study->isChecked())
        lable+=" 学习";
    if(ui->go_outside->isChecked())
        lable+=" 外出";
    if(ui->game->isChecked())
        lable+=" 游戏";
    ui->label->setText(lable);
}
